/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-04-16 11:25:59
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-05-26 13:25:06
 */
import React, { useState } from "react";
export default (props: any) => {
  console.log(props);
  const prevFrom = props.location.state?.from;
  if (prevFrom) {
    const routeLink = prevFrom.pathname + prevFrom.search;
    console.log(routeLink);
  } else {
    console.log("跳转到自定义首页");
  }

  return <div>login</div>;
};
